extends VBoxContainer


const SelectParagraphItem = preload("res://tool/page/dialog/paragraph/SelectParagraphItem.tscn") 

onready var items = $items

func _ready():
	pass 



func _on_addItem_button_up():
	items.add_child(SelectParagraphItem.instance())


func set_data(data):
	if data:
		for item in data:
			var ui = SelectParagraphItem.instance()
			items.add_child(ui)
			ui.set_data(item)
	
	

func get_data():
	var list = []
	for child in items.get_children():
		list.append(child.get_data())
		
	return list
